#include "stdafx.h"
#include "surface.h"

BOOST_AUTO_TEST_SUITE(surface);

BOOST_AUTO_TEST_CASE(initialize_procedure)
{
	Surface testsurf;
	testsurf.initialize(15, 10);
	BOOST_REQUIRE_EQUAL(testsurf.getWidth(), 15);
	BOOST_REQUIRE_EQUAL(testsurf.getHeight(), 10);
}

BOOST_AUTO_TEST_CASE(initialize_constructor)
{
	Surface testsurf(15, 10);
	BOOST_REQUIRE_EQUAL(testsurf.getWidth(), 15);
	BOOST_REQUIRE_EQUAL(testsurf.getHeight(), 10);
}

BOOST_AUTO_TEST_CASE(set_square_inside_surface)
{
	Surface testsurf(15, 10);
	testsurf.setSquareValue(3, 4, 3);
	BOOST_REQUIRE_EQUAL(testsurf.getSquareValue(3, 4), 3);
}

BOOST_AUTO_TEST_SUITE_END();
